import esperanto
import unittest

class KnownValues(unittest.TestCase):
	known_values = ( 
		(1, 'unu'),
		(2, 'du'),
		(9, 'naux'),
		(10, 'dek'),
		(11, 'dek unu'),
		(13, 'dek tri'),
		(50, 'kvindek'),
		(60, 'sesdek'),
		(78, 'sesdek ok'),
		(94, 'nauxdek kvar'),
		(100, 'cent'),
		(200, 'ducent'),
		(234, 'ducent tridek kvar')
		)
	def test_to_esperanto_known_values(self):
		''' to esperanto translation must give correct values with known input '''
		for i,e in self.known_values:
			result = esperanto.number_by_string(i)
			self.assertEqual(e,result)

if __name__ == '__main__':
	unittest.main()
			
